package com.witmore.neutron.ai.web.controller.vo;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class ApiMessagePrompt implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 角色 system；user
     */
    private String role;

    /**
     * 提示词 Content 是一个 Content的JSONArray串
     */
    private String content;

    @Data
    public static class Content implements Serializable {

        @Serial
        private static final long serialVersionUID = 1L;

        /**
         * 类型 ：“text”/“image_url”
         */
        private String type;

        private String text;

        private String url;
    }

    public ApiMessagePrompt() {
    }
    public ApiMessagePrompt(String role, String content) {
        this.role = role;
        this.content = content;
    }
}
